package com.wpw.web.base;

import java.util.concurrent.atomic.AtomicReference;
import java.util.concurrent.atomic.AtomicReferenceArray;

/**
 * @Description:
 * @ClassName: AtomicTest
 * @CreateDate: 2020-06-13 22:11
 * @author: wupengwei
 */
public class AtomicTest {

    public static void main(String[] args) {
        AtomicReferenceArray<String> stringAtomArray = new AtomicReferenceArray<String>(100);
        for (int i = 0; i <= 100; i++) {
            stringAtomArray.set(i, i + "");
        }

        for (int i = 0; i < 10; i++) {
            new Thread(() -> {
               // stringAtomArray.
            }).start();
        }
    }
}